package Forms;
import BusinessEntity.BE_Personal;
import BusinessEntity.BE_Usuario;
import BusinessLogic.BL_Requerimiento;
import BusinessLogic.BL_Usuario;
import Comun.Constantes;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.sql.SQLException;
import java.text.DateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Richard
 */
public class Frm_principal extends javax.swing.JFrame {
    
    //Usuario
    private BE_Usuario objBEUsuario;
    
    //Personal
    private BE_Personal objBEPersonal;
        
    /** Creates new form Frn_principal */
    public Frm_principal(String strUsuario) throws InstantiationException, IllegalAccessException, SQLException {
        
        initComponents();
        setDefaultCloseOperation(0);       
        BL_Usuario objBLusuario = new BL_Usuario();
        
        this.objBEPersonal = objBLusuario.obtenerPersonal(strUsuario);
        this.objBEUsuario = this.objBEPersonal.getObjBEUsuario();
        
        if(this.objBEPersonal.getObjBERol().getIdRol()== Constantes.JefeTester){
            boolean bolRequerimientos = BL_Requerimiento.obtenerInstancia().verificacionrequerimientos(this.objBEPersonal.getObjBERol().getIdRol(), this.objBEUsuario.getIdUsuario());
            if(bolRequerimientos){
                if(Comun.GUI.msjPreguntaSiNo("Usted tiene Requerimientos Pendientes de Asignación\n¿Desea ver su bandeja?")){
                    Frm_BandejaTarea frm_BandejaTarea = new Frm_BandejaTarea(this);
                    this.jdpContenedor.add(frm_BandejaTarea);
                    Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
                    Dimension ventana = frm_BandejaTarea.getSize();
                    frm_BandejaTarea.setLocation((pantalla.width - ventana.width) / 2, (pantalla.height - ventana.height) / 5);
                    frm_BandejaTarea.show();
                    this.desHabilitarMenu();
                }
            }
        }
        
        if(this.objBEPersonal.getObjBERol().getIdRol()== Constantes.Tester){
            boolean bolRequerimientos = BL_Requerimiento.obtenerInstancia().verificacionrequerimientos(this.objBEPersonal.getObjBERol().getIdRol(), this.objBEUsuario.getIdUsuario());
            if(bolRequerimientos){
                if(Comun.GUI.msjPreguntaSiNo("Usted tiene Requerimientos Asignados\n¿Desea ver su bandeja?")){
                    Frm_BandejaTarea frm_BandejaTarea = new Frm_BandejaTarea(this);
                    this.jdpContenedor.add(frm_BandejaTarea);
                    Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
                    Dimension ventana = frm_BandejaTarea.getSize();
                    frm_BandejaTarea.setLocation((pantalla.width - ventana.width) / 2, (pantalla.height - ventana.height) / 5);
                    frm_BandejaTarea.show();
                    this.desHabilitarMenu();
                }
            }
        }
        

        this.lblUsr.setText(this.objBEUsuario.getStrLogin().trim());
        this.lblBienvenida.setText(this.objBEPersonal.getStrNombre().trim() +" " +  this.objBEPersonal.getStrApePat().trim()+ " " +  this.objBEPersonal.getStrApeMat().trim());
        Date now = new Date();
        DateFormat df4 = DateFormat.getDateInstance(DateFormat.LONG);
        lblFecha.setText(df4.format(now));
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        statusPanel = new javax.swing.JPanel();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        lblEtiquetaUsuario = new javax.swing.JLabel();
        lblEtiquetaFecha = new javax.swing.JLabel();
        lblFecha = new javax.swing.JLabel();
        lblUsr = new javax.swing.JLabel();
        lblWelcome = new javax.swing.JLabel();
        lblBienvenida = new javax.swing.JLabel();
        jdpContenedor = new javax.swing.JDesktopPane();
        jmbGeneral = new javax.swing.JMenuBar();
        jmiConfiguracion = new javax.swing.JMenu();
        jmiPersonal = new javax.swing.JMenu();
        jmiRegistrarClientes = new javax.swing.JMenuItem();
        jmiModificarClientes = new javax.swing.JMenuItem();
        jmiUsuario = new javax.swing.JMenu();
        jmiRegistrarProveedor = new javax.swing.JMenuItem();
        jmiModificarProveedor = new javax.swing.JMenuItem();
        jmiRol = new javax.swing.JMenu();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jmiGestion = new javax.swing.JMenu();
        jmRequerimiento = new javax.swing.JMenu();
        jmiNuevoReq = new javax.swing.JMenuItem();
        jmiBandeja = new javax.swing.JMenuItem();
        jmiSeguridad = new javax.swing.JMenu();
        jmiSalir = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Menu Principal - TotalQuality");
        setLocationByPlatform(true);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosed(java.awt.event.WindowEvent evt) {
                formWindowClosed(evt);
            }
        });

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);

        lblEtiquetaUsuario.setFont(new java.awt.Font("Times New Roman", 3, 14)); // NOI18N
        lblEtiquetaUsuario.setText("Usuario:");

        lblEtiquetaFecha.setFont(new java.awt.Font("Times New Roman", 3, 14)); // NOI18N
        lblEtiquetaFecha.setText("Fecha:");

        lblFecha.setFont(new java.awt.Font("Times New Roman", 3, 14)); // NOI18N
        lblFecha.setText("dd/mm/aaaa");

        lblUsr.setFont(new java.awt.Font("Times New Roman", 3, 14)); // NOI18N

        lblWelcome.setFont(new java.awt.Font("Times New Roman", 3, 14)); // NOI18N
        lblWelcome.setText("Bienvenido:");

        lblBienvenida.setFont(new java.awt.Font("Times New Roman", 3, 14)); // NOI18N

        javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(statusPanelSeparator)
                    .addGroup(statusPanelLayout.createSequentialGroup()
                        .addComponent(statusMessageLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblEtiquetaUsuario)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblUsr, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(lblEtiquetaFecha)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lblFecha)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(lblWelcome)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblBienvenida, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(statusAnimationLabel)
                        .addContainerGap())))
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(statusMessageLabel)
                        .addComponent(statusAnimationLabel))
                    .addComponent(lblEtiquetaUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblEtiquetaFecha, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblFecha, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblUsr, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblWelcome, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(lblBienvenida, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        jmiConfiguracion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/maestros.png"))); // NOI18N
        jmiConfiguracion.setText("Configuración");
        jmiConfiguracion.setToolTipText("Configuración");

        jmiPersonal.setText("Personal");

        jmiRegistrarClientes.setText("Registrar");
        jmiPersonal.add(jmiRegistrarClientes);

        jmiModificarClientes.setText("Modificar");
        jmiPersonal.add(jmiModificarClientes);

        jmiConfiguracion.add(jmiPersonal);

        jmiUsuario.setText("Usuarios");

        jmiRegistrarProveedor.setText("Registrar");
        jmiRegistrarProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRegistrarProveedorActionPerformed(evt);
            }
        });
        jmiUsuario.add(jmiRegistrarProveedor);

        jmiModificarProveedor.setText("Modificar");
        jmiModificarProveedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiModificarProveedorActionPerformed(evt);
            }
        });
        jmiUsuario.add(jmiModificarProveedor);

        jmiConfiguracion.add(jmiUsuario);

        jmiRol.setText("Roles");

        jMenuItem3.setText("Registrar");
        jmiRol.add(jMenuItem3);

        jMenuItem12.setText("Modificar");
        jmiRol.add(jMenuItem12);

        jmiConfiguracion.add(jmiRol);

        jmbGeneral.add(jmiConfiguracion);

        jmiGestion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/presupuestos.png"))); // NOI18N
        jmiGestion.setText("Gestión");
        jmiGestion.setToolTipText("Gestión");
        jmiGestion.setActionCommand("Gestion");
        jmiGestion.setPreferredSize(new java.awt.Dimension(130, 64));

        jmRequerimiento.setText("Requerimiento");

        jmiNuevoReq.setText("Nuevo");
        jmiNuevoReq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiNuevoReqActionPerformed(evt);
            }
        });
        jmRequerimiento.add(jmiNuevoReq);

        jmiGestion.add(jmRequerimiento);

        jmiBandeja.setText("Bandeja");
        jmiBandeja.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jmiBandeja.setPreferredSize(new java.awt.Dimension(113, 22));
        jmiBandeja.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiBandejaActionPerformed(evt);
            }
        });
        jmiGestion.add(jmiBandeja);

        jmbGeneral.add(jmiGestion);
        jmiGestion.getAccessibleContext().setAccessibleName("Gestion");
        jmiGestion.getAccessibleContext().setAccessibleDescription("Gestion");

        jmiSeguridad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/linuxconf.png"))); // NOI18N
        jmiSeguridad.setText("Seguridad");
        jmiSeguridad.setToolTipText("Seguridad");
        jmiSeguridad.setPreferredSize(new java.awt.Dimension(119, 64));
        jmbGeneral.add(jmiSeguridad);

        jmiSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/exit_2.png"))); // NOI18N
        jmiSalir.setText("Salir");
        jmiSalir.setToolTipText("Salir");
        jmiSalir.setPreferredSize(new java.awt.Dimension(119, 64));
        jmiSalir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jmiSalirMousePressed(evt);
            }
        });
        jmiSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiSalirActionPerformed(evt);
            }
        });
        jmbGeneral.add(jmiSalir);

        setJMenuBar(jmbGeneral);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(statusPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jdpContenedor, javax.swing.GroupLayout.DEFAULT_SIZE, 1283, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jdpContenedor, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(statusPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-1309)/2, (screenSize.height-685)/2, 1309, 685);
    }// </editor-fold>//GEN-END:initComponents

    private void jmiSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiSalirActionPerformed
        
        // TODO add your handling code here:
    }//GEN-LAST:event_jmiSalirActionPerformed

    private void jmiSalirMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jmiSalirMousePressed
        cerrarSesion();
        // TODO add your handling code here:
    }//GEN-LAST:event_jmiSalirMousePressed

    private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
        //cerrarSesion();
        // TODO add your handling code here:
    }//GEN-LAST:event_formWindowClosed

    private void jmiModificarProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiModificarProveedorActionPerformed
        //        Frm_mantenimientoProveedor frm_mantenimientoProveedor = new Frm_mantenimientoProveedor(this, 1);
        //        frm_mantenimientoProveedor.setVisible(true);
        //        this.desHabilitarMenu();

    }//GEN-LAST:event_jmiModificarProveedorActionPerformed

    private void jmiRegistrarProveedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRegistrarProveedorActionPerformed
        //        Frm_registrarProveedor frm_registrarProveedor = new Frm_registrarProveedor(this, 1);
        //        frm_registrarProveedor.setVisible(true);
        //        this.desHabilitarMenu();

    }//GEN-LAST:event_jmiRegistrarProveedorActionPerformed

    private void jmiBandejaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiBandejaActionPerformed

        try {
            Frm_BandejaTarea frm_BandejaTarea = new Frm_BandejaTarea(this);
            this.jdpContenedor.add(frm_BandejaTarea);
            Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
            Dimension ventana = frm_BandejaTarea.getSize();
            frm_BandejaTarea.setLocation((pantalla.width - ventana.width) / 2, (pantalla.height - ventana.height) / 8);
            frm_BandejaTarea.show();
            this.desHabilitarMenu();
        } catch (InstantiationException ex) {
            Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
        }

    }//GEN-LAST:event_jmiBandejaActionPerformed

    private void jmiNuevoReqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiNuevoReqActionPerformed

        Frm_BandejaTarea frm_BandejaTarea = null;
        
        try {
            frm_BandejaTarea = new Frm_BandejaTarea(this);
            this.jdpContenedor.add(frm_BandejaTarea);
            Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
            Dimension ventana = frm_BandejaTarea.getSize();
            frm_BandejaTarea.setLocation((pantalla.width - ventana.width) / 2, (pantalla.height - ventana.height) / 5);
            frm_BandejaTarea.show();
            this.desHabilitarMenu();
        } catch (InstantiationException ex) {
            Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        Frm_Requerimiento objFrm_Requerimiento = null;
        try {
            int intCodRequerimientoNuevo = Constantes.CodigoRequerimientoNuevo;
            int intOpcion = Constantes.OpcionNuevo;
            objFrm_Requerimiento = new Frm_Requerimiento(frm_BandejaTarea, intCodRequerimientoNuevo, intOpcion);
        } catch (InstantiationException ex) {
            Logger.getLogger(Frm_BandejaTarea.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Frm_BandejaTarea.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Frm_BandejaTarea.class.getName()).log(Level.SEVERE, null, ex);
        }
        Frm_principal.jdpContenedor.add(objFrm_Requerimiento);
        Dimension pantalla = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension ventana = objFrm_Requerimiento.getSize();
        objFrm_Requerimiento.setLocation((pantalla.width - ventana.width) / 2, (pantalla.height - ventana.height) / 5);
        objFrm_Requerimiento.toFront();
        objFrm_Requerimiento.setVisible(true);
        frm_BandejaTarea.limpiarGrilla();
        frm_BandejaTarea.setVisible(false);
    }//GEN-LAST:event_jmiNuevoReqActionPerformed

    private void cerrarSesion() {
        if (Comun.GUI.msjPreguntaSiNo("¿Desea cerrar su sesión?")) {
            new Frm_login().setVisible(true);
            this.dispose();
        }
    }

    private void verMenu(boolean bool) {

        this.jmiConfiguracion.setEnabled(bool);
        this.jmiGestion.setEnabled(bool);
        this.jmiSalir.setEnabled(bool);
        this.jmiSeguridad.setEnabled(bool);

    }

    public void habilitarMenu() {
        verMenu(true);
    }

    public void desHabilitarMenu() {
        verMenu(false);
    }

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                try {
                    new Frm_principal("richard").setVisible(true);
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_principal.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem3;
    public static javax.swing.JDesktopPane jdpContenedor;
    private javax.swing.JMenu jmRequerimiento;
    private javax.swing.JMenuBar jmbGeneral;
    private javax.swing.JMenuItem jmiBandeja;
    private javax.swing.JMenu jmiConfiguracion;
    private javax.swing.JMenu jmiGestion;
    private javax.swing.JMenuItem jmiModificarClientes;
    private javax.swing.JMenuItem jmiModificarProveedor;
    private javax.swing.JMenuItem jmiNuevoReq;
    private javax.swing.JMenu jmiPersonal;
    private javax.swing.JMenuItem jmiRegistrarClientes;
    private javax.swing.JMenuItem jmiRegistrarProveedor;
    private javax.swing.JMenu jmiRol;
    private javax.swing.JMenu jmiSalir;
    private javax.swing.JMenu jmiSeguridad;
    private javax.swing.JMenu jmiUsuario;
    private javax.swing.JLabel lblBienvenida;
    private javax.swing.JLabel lblEtiquetaFecha;
    private javax.swing.JLabel lblEtiquetaUsuario;
    private javax.swing.JLabel lblFecha;
    private javax.swing.JLabel lblUsr;
    private javax.swing.JLabel lblWelcome;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the objBEUsuario
     */
    public BE_Usuario getObjBEUsuario() {
        return objBEUsuario;
    }

    /**
     * @param objBEUsuario the objBEUsuario to set
     */
    public void setObjBEUsuario(BE_Usuario objBEUsuario) {
        this.objBEUsuario = objBEUsuario;
    }

    /**
     * @return the objBEPersonal
     */
    public BE_Personal getObjBEPersonal() {
        return objBEPersonal;
    }

    /**
     * @param objBEPersonal the objBEPersonal to set
     */
    public void setObjBEPersonal(BE_Personal objBEPersonal) {
        this.objBEPersonal = objBEPersonal;
    }
}
